﻿using GN.Pay.TradeChannel.DefaultImpl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.WeiXin.Response
{
    [Serializable]
    class QrCodePayResponse : PayResponse
    {
        public QrCodePayResponse(string xml)
            : base(xml)
        {
        }

        /// <summary>
        /// 生成二维码的url
        /// </summary>
        public string Code_Url { get; set; }

        /// <summary>
        /// 转为结果
        /// </summary>
        /// <returns></returns>
        public override ITradePayApplyResult ToResult(WeiXinConfigure config)
        {
            ToResultCheck(config);
            return new TradePayApplyResult(Prepay_Id, Code_Url, "", TradePayApplyResultCallType.WEB_Qrcode);
        }
    }
}
